headerbar: Stop looking at type hints
authorMatthias Clasen <mclasen@redhat.com>
Fri, 6 Mar 2020 20:55:15 +0000 (12:55 -0800)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 11 Mar 2020 23:36:04 +0000 (19:36 -0400)
gtk/gtkheaderbar.c

index ca56f4fba12c5bdea6509eab3b50abf1a14f2882..46454f8f6898c688800299289524c2581c5ec929 100644 (file)
@@ -346,9 +346,8 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
   else
     menu = NULL;
 
-  is_sovereign_window = (!gtk_window_get_modal (window) &&
-                          gtk_window_get_transient_for (window) == NULL &&
-                          gtk_window_get_type_hint (window) == GDK_SURFACE_TYPE_HINT_NORMAL);
+  is_sovereign_window = !gtk_window_get_modal (window) &&
+                         gtk_window_get_transient_for (window) == NULL;
 
   tokens = g_strsplit (layout_desc, ":", 2);
   if (tokens)